![]() |
|
#21
|
|||
|
|||
|
sorry if this was confusing to you
Quote:
__________________
Real useful and Cool vBulletin addons |
|
#22
|
||||
|
||||
|
I added this to my forums but I wanted the individual categories to show instead of one to the complete links section (since my site is based around links). http://www.legendarythreads.net/forums/
I'm concerned because I could not figure out a way to do this without repeating the code multiple times, this adds many queries per page load and I'm trying to lighten the query count. Is there a way to combine the code below into less queries? PHP Code:
|
|
#23
|
|||
|
|||
|
Quote:
Thanks By the way GREAT mod! |
|
#24
|
||||
|
||||
|
Look at my example just above your post. You can see where I have placed class="smallfont" to control the font size on the $forum['lastpostinfo'] line (3rd from last).
|
|
#25
|
|||
|
|||
|
Thanks Phil.....
|
|
#26
|
|||
|
|||
|
Would it be possible to make a Plugin out of this instead of modifying one of the files directly? I tried, unsuccessful tho. Its a neat little feature and I'd love to have it but since I want to keep my workload on updates small I refrain from using any hacks which involve hacking files directly.
Thanks |
|
#27
|
|||
|
|||
|
In order to make a plugin, you need a hook at a specific location. If there is no such hook, then a file edit is required if you want to use it.
__________________
Real useful and Cool vBulletin addons |
|
#28
|
||||
|
||||
|
I installed this mod on my site and it works. But the problem for me is, that it is not valid XHTML 1.0 Transitional and gives me 22 errors on W3C, for example related to character "&" is the first character of a delimiter but occurred as data. I ask myself why so many mods here and on vbulletin.org are not XHTML 1.0 Transitional when vbulletin is. Wouldn't it be better to use the same language? I didn't validate my pages before and installed lots of mods. But when I validatet them the other day, I found over 200 errors on my homepage, and all because of the code of the mods. I would really like to use this solution for the link directory. So I would like to ask if you consider this important and if I can reinstall the mods anyway?
Best regards Janfri |
|
#29
|
|||
|
|||
|
Simply replace
Quote:
Quote:
So if a mod is causing 200 errors, you'll be surprised that fixing only the first one will change that 200 into a dastically lower errors, such as 5 Most of the mods that I posted for free are from my 9 years old site and that's not an important issue for me. If that is causing grief, then I will stop posting them.
__________________
Real useful and Cool vBulletin addons |
|
#30
|
||||
|
||||
|
Quote:
The mod works perfectly and the page is validate without errors. Thanks bunches, that was very helpful. I'm afraid I will have to learn XHTML coding to be able to fix this kind of issues myself.Best regards Janfri |
|
#31
|
|||
|
|||
|
I really like this hack!
Demo I have just a couple small issues with it though. First, the date isn't showing up the same in my custom styles. And second, the 'lastpost' image isn't the same as in the rest of the style. For a better explanation, see the attached images... |
|
#32
|
|||
|
|||
|
Simply edit the file to point your images to correct location. I used default vb folders
__________________
Real useful and Cool vBulletin addons |
|
#33
|
|||
|
|||
|
But both styles don't use the same image. So, I don't understand how I would do that.
|
|
#34
|
|||
|
|||
|
<img src="' . $stylevar['imgdir_button'] . '/lastpost.gif"
__________________
Real useful and Cool vBulletin addons |
|
#35
|
|||
|
|||
|
Thanks! That's what I call quick service!
What about the text coloring issue though? |
|
#36
|
|||
|
|||
|
Ditto! ha, ha But I kept reading through the thread until I finally figured it all out. Thanxx Lionel for taking the time/effort to post this information!
Here's the steps I ended up doing to get it working... 1)Created a new forum (#147 in MY case) with a Title of LINKS Library Note: Our vBa LINK Directory Product is installed 'next to' our Forums Directory, not beneath it. (i.e. /public_html/forums; /public_html/links and NOT: /public_html/forums/links) 2)Next in the Forum Link field (see Forums Manager in AdminCP), pointed it to the website's What's New Links index (i.e. http://www.yourwebsite.com/links/whatsnew/links/) In the forums/includes/functions_forumlist.php file FIND Code:
$forum['lastpostinfo'] = '-'; Code:
if ($forum['forumid'] == 'XX')
{
global $db;
$tot = $db->query_first("SELECT COUNT(*) as count FROM " . TABLE_PREFIX . "adv_links");
$link = $db->query_first("SELECT linkid , name, posts, username, userid, dateline FROM " . TABLE_PREFIX . "adv_links ORDER BY linkid DESC");
$date = vbdate($vbulletin->options['dateformat'], $link['dateline'], 1);
$time = vbdate($vbulletin->options['timeformat'], $link['dateline']);
$forum['lastpostinfo'] = '<div align="left"><strong><a href="/links/showlink.php?do=showdetails&l='.$link[linkid].'">'.$link[name].'</a></strong><br />by <a href="member.php?find=lastposter&f='.$link[userid].'">'.$link[username].'</a><br /><span style="float:right;">'.$date.' '.$time.' <a href="/links/showlink.php?do=showdetails&l='.$link[linkid].'"><img src="images/buttons/lastpost.gif" border="0" alt="View links"></a></span></div>';
$forum['threadcount'] = $tot['count'];
$forum['replycount'] = $link['posts'];
}
|
|
#37
|
|||
|
|||
|
This code from adwade seems to be the definitive solution for this, I've used it and it works just fine
Quote:
Code:
if ($forum['forumid'] == 'XX')
{
global $db;
$tot = $db->query_first("SELECT COUNT(*) as count FROM " . TABLE_PREFIX . "adv_links");
$link = $db->query_first("SELECT linkid , name, posts, username, userid, dateline FROM " . TABLE_PREFIX . "adv_links ORDER BY linkid DESC");
$date = vbdate($vbulletin->options['dateformat'], $link['dateline'], 1);
$time = vbdate($vbulletin->options['timeformat'], $link['dateline']);
$forum['lastpostinfo'] = '<div align="left" class="smallfont"><strong><a href="/links/showlink.php?do=showdetails&l='.$link[linkid].'">'.$link[name].'</a></strong><br />by <a href="member.php?find=lastposter&f='.$link[userid].'">'.$link[username].'</a><br /><span style="float:right;">'.$date.' '.$time.' <a href="/links/showlink.php?do=showdetails&l='.$link[linkid].'"><img src="images/buttons/lastpost.gif" border="0" alt="View links"></a></span></div>';
$forum['threadcount'] = $tot['count'];
$forum['replycount'] = $link['posts'];
}
|
|
#38
|
|||
|
|||
|
Its a shame that replys to links doesn't show and you just get a 0 in the posts column, I've tried everything I can think of to fix this grrr...
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fake stats help | daddy20 | Modifications (version 3.x & 2.x) | 6 | 01-12-2007 10:32 PM |
| VBaLinks 2.0? | interfx | Pre-Sale Questions | 117 | 10-02-2006 12:37 PM |
| Fake item in navigation. | DonLKSAB | "How Do I..." Questions | 3 | 08-16-2006 09:48 AM |
| VBaLinks 1.01 | interfx | Pre-Sale Questions | 15 | 07-29-2005 12:23 AM |
| vBaLinks Power | Polo | Pre-Sale Questions | 3 | 12-15-2004 07:53 PM |