TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 411
  • Total: 411

eqdkp latest loot

Started by baderick, May 09, 2007, 12:34:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rjackson

I have a few questions about your site http://judeanpeoplesfront.net/forums

The Upcoming Raid block..how did u do that? and Can u zip your images folder and post it? or send it to me in a email. I wanna update my images on my wow website with the images you use...

Thanks

baderick

the images come from phpraider which can be found here http://www.phpraider.com/ when the phpraider block is ready i will post it here for all to use :)

data-darius

baderick,
would you be so nice to provide us with the code you are using on your page (JPF) ?
I do not get it working using my existing bbcode (same as others?) which is based on [wowitem] which I changed properly in the code you provided.
So now yourself is using regular (not built-in) itemstats to get this done? Can you provide your code with the includes etc you are using there now ?

thanks a lot,
darius

baderick

if i get time tonight cus im not raiding  :) ill post a guide how to get itemstats working in smf and tinyportal v easy  ;D

and give the code im using atm for the latest loot.

the problem with wowitemstats is  you need to add extra code in tp to get it to work, which can be found on these boards.

smokeajayson

Yeah, and I have the code added so wowitemstats works in blocks and articles.  The only problem is that it doesn't work in phpblocks.  I call itemstats_parse($data) just as you do, but it just returns the same data I passed the function without actually parsing it.

I know the function is being called, as I'm not getting a "this function doesn't exist" type error.

function itemstats_parse($message)
{
  global $db_character_set, $scripturl, $modSettings, $settings, $user_settings;
  static $iconcount = 0;
 
if (!empty($message))
{
    //don't allow encase of [wowitem] tag
    if (count($message) > 1)
    {
      if (strstr($message[0], '[wowitem]') || strstr($message[0], '[item]') || strstr($message[0], '<wowitem>'))
        return $message;
    }
    else
    {
      if (strstr($message, '[wowitem]') || strstr($message, '[item]') || strstr($message, '<wowitem>'))
        return $message;
    }


The problem is the last bit of code posted above.  If it finds [item] or [wowitem] it just returns the data you send the function without actually parsing it.

Phinhead54

Search for how to setup TPparseWoWitems and use "echo TPparseWoWItems($myhtml);"

smokeajayson

Yeah, I figured it out.  lol.  Now, to hack the code to use the image like badericks' website.

Starbearer

Sry for dragging out an older post. I just installed a block with the code posted here, but it only shows up with an error message:

QuoteAccess denied for user 'd00XXXX'@'localhost' to database 'd00YYYY'

d00XXXX is the database of my forum and d00YYYY the one of the eqdkp.

My databases for the forum and the eqdkp are separated. I doublechecked the database details in the code and they are correct.
Can anyone help me with that, I am kinda noobish at coding. Thx in advance

Phinhead54

You have to go into whatever mySQL admin tool you use and give the d00XXXX user rights to look into the d00YYYY database.

Keep in mind that I am not a security expert, what I suggest may or may not be the most secure way to do things.

baller1308

#39
nevermind, I got it to work ;D

This website is proudly hosted on Crocweb Cloud Website Hosting.