Results 1 to 6 of 6

Help with plugin..

This is a discussion on Help with plugin.. within the Template Modifications forums, part of the vBulletin SEO Discussion category; This old plugin kind of does what I'd like it to do Widget:Forums Category names/links in cms for version 4.0.1 ...

  1. #1
    Senior Member
    Real Name
    Mike
    Join Date
    Aug 2006
    Posts
    213
    Liked
    4 times

    Help with plugin..

    This old plugin kind of does what I'd like it to do

    Widget:Forums Category names/links in cms for version 4.0.1 - omardealo - vBulletin.org Forum

    A widget to display our Forum Categories on our CMS page.

    but the coding only uses the standard forum category .php URL's. (non-seo'd version)

    I'd like the SEO'd versions..and also a break <br> after each category...so each category is displayed on each line.

    I'm guessing this shouldn't be too hard to do, but not enough php coding experience here to pull it off flawlessly.

    Since you guys are the SEO dudes, I thought i'd post this here.

    (my post is at the bottom of that thread....basically the same stuff)

    maybe someone could even make this their own Plugin , once modified... Surprised there isn't one made already.

  2. #2
    Senior Member
    Real Name
    Mike
    Join Date
    Aug 2006
    Posts
    213
    Liked
    4 times
    alright, i fixed the <br> part....i've got all categories on 1 line now.

    I just need to display the SEO format of the links instead of the .php format.

    It has something to do with this part -
    <a href="forumdisplay.php?'.$forum[forumid].'" style="text-decoration: none">'.$forum[title].'</a>
    can someone help me quick...shouldn't be too hard to figure out.

  3. #3
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    vBSEO Functions for Extensibility

    a couple includes and a wrap is all you need.

  4. #4
    Senior Member
    Real Name
    Mike
    Join Date
    Aug 2006
    Posts
    213
    Liked
    4 times
    thx bro, I was able to accomplish it with the following :

    changed in Red.


    ob_start();
    $excluded = "1,2,3";
    $forum_get = vB::$db->query_read("
    SELECT * FROM ".TABLE_PREFIX."forum
    WHERE forumid NOT IN ($excluded) ORDER by forumid");
    $output_bits = '';
    while($forum = vB::$db->fetch_array($forum_get))
    {
    $output_bits .= '<a href="http://www.mydomain.com/forum'.$forum[forumid].'" style="text-decoration: none">'.$forum[title].'</a>
    <font color="#FF6600"><b><br /></b></font> ';
    }
    $output = $output_bits;
    ob_end_clean();

  5. #5
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    you really shouldn't use a font tag. i'ts been deprecated for years. And whats the point of changing the font and bolding a line break?

  6. #6
    Senior Member
    Real Name
    Mike
    Join Date
    Aug 2006
    Posts
    213
    Liked
    4 times
    Quote Originally Posted by Brian Cummiskey View Post
    you really shouldn't use a font tag. i'ts been deprecated for years. And whats the point of changing the font and bolding a line break?
    it was in the original coding... i'll remove it now. thx.

Similar Threads

  1. Mediawiki plugin
    By Dunhamzzz in forum General Discussion
    Replies: 2
    Last Post: 09-11-2010, 12:14 AM
  2. Question about plugin or some plugin
    By Alexey in forum General Discussion
    Replies: 1
    Last Post: 02-25-2010, 04:35 PM
  3. vb3.5 rc2 and the plugin?
    By uyoruk in forum General Discussion
    Replies: 2
    Last Post: 08-05-2005, 11:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •