vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=232684)

squidsk 07-18-2012 03:55 PM

Is it messed up with the default style? I'm asking because that custom style has a tonne of xhtml validation errors, any of which might cause odd behaviour with the appearance of a page.

afmarko99 07-18-2012 04:41 PM

Quote:

Originally Posted by squidsk (Post 2349284)
Is it messed up with the default style? I'm asking because that custom style has a tonne of xhtml validation errors, any of which might cause odd behaviour with the appearance of a page.

No the default style is fine but thats because the default style only has the VB navbar not the custom navbar he has added to the forum.

Here is the custom navbar coding in the 'header' template:

<!-- Begin Menu -->
<ul id="nav">
<li><a href="http://www.thepublicenemy.net/home/i...">Home</a></li>
<li><a href="http://www.thepublicenemy.net/forum.php">Forum</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/search...orum_Post">New Posts</a></li>
<li><a href="http://www.thepublicenemy.net/search.php?do=getdaily&contenttype=vBForum_Post">T oday's Posts</a></li>
<li><a href="http://www.thepublicenemy.net/forumdisplay.php?2-Bullshitters-Bench">Bullshitter's Bench</a></li>
<li><a href="http://www.thepublicenemy.net/forumd...3">Battlefield 3</a></li>
<li><a href="http://www.thepublicenemy.net/forumd...scussion">Clan Discussion</a></li>
</ul><!-- End Sub Level -->
</li>
<li><a href="#">-TPE- Center</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/home/i...Roster</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...istory</a></li>
<li><a href="http://www.thepublicenemy.net/forms....rm&fid=1">Join -TPE-</a></li>
<li><a href="https://www.paypal.com/cgi-bin/websc...=3BDCYPJFTLMQ4" target="_blank">Donate</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...icID=6">Recent Donators</a></li>
</ul><!-- End Sub Level -->
</li>
<li><a href="#">-TPE- Center 2</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/awards.php">Awards Program</a></li>
<li><a href="http://battlelog.battlefield.com/bf3...5240986011936/" target="_blank">Battlelog Page</a></li>
<li><a href="http://www.youtube.com/user/TPEthepublicenemy/feed" target="_blank">Youtube Page</a></li>
</ul><!-- End Sub Level -->

<li><a href="#">Competition</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/home/i...e=clanwars">BF 3 Matches</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...cID=2">Overall Match History</a></li>
</ul><!-- End Sub Level -->
</li>
<li><a href="#">Media & Info</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/home/i...aticID=4">-TPE- Videos</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...aticID=5">-TPE- Gallery</a></li>
<li><a href="http://www.thepublicenemy.net/home/index.php">News Archive</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...ticles</a></li>
<li><a href="http://www.thepublicenemy.net/calend...lendar</a></li>
</ul><!-- End Sub Level -->
</li>
</ul>
<!-- End Menu -->


Can I build a new template based off 'header' and replace the line in the awards template?
Then edit the new template IE header_awards and try to fix the issue that is conflicting with the awards template?

squidsk 07-18-2012 07:21 PM

Quote:

Originally Posted by EaglezEye (Post 2349297)
No the default style is fine but thats because the default style only has the VB navbar not the custom navbar he has added to the forum.

Here is the custom navbar coding in the 'header' template:

<!-- Begin Menu -->
<ul id="nav">
<li><a href="http://www.thepublicenemy.net/home/i...">Home</a></li>
<li><a href="http://www.thepublicenemy.net/forum.php">Forum</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/search...orum_Post">New Posts</a></li>
<li><a href="http://www.thepublicenemy.net/search.php?do=getdaily&contenttype=vBForum_Post">T oday's Posts</a></li>
<li><a href="http://www.thepublicenemy.net/forumdisplay.php?2-Bullshitters-Bench">Bullshitter's Bench</a></li>
<li><a href="http://www.thepublicenemy.net/forumd...3">Battlefield 3</a></li>
<li><a href="http://www.thepublicenemy.net/forumd...scussion">Clan Discussion</a></li>
</ul><!-- End Sub Level -->
</li>
<li><a href="#">-TPE- Center</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/home/i...Roster</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...istory</a></li>
<li><a href="http://www.thepublicenemy.net/forms....rm&fid=1">Join -TPE-</a></li>
<li><a href="https://www.paypal.com/cgi-bin/websc...=3BDCYPJFTLMQ4" target="_blank">Donate</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...icID=6">Recent Donators</a></li>
</ul><!-- End Sub Level -->
</li>
<li><a href="#">-TPE- Center 2</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/awards.php">Awards Program</a></li>
<li><a href="http://battlelog.battlefield.com/bf3...5240986011936/" target="_blank">Battlelog Page</a></li>
<li><a href="http://www.youtube.com/user/TPEthepublicenemy/feed" target="_blank">Youtube Page</a></li>
</ul><!-- End Sub Level -->

<li><a href="#">Competition</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/home/i...e=clanwars">BF 3 Matches</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...cID=2">Overall Match History</a></li>
</ul><!-- End Sub Level -->
</li>
<li><a href="#">Media & Info</a>
<ul><!-- Begin Sub Level -->
<li><a href="http://www.thepublicenemy.net/home/i...aticID=4">-TPE- Videos</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...aticID=5">-TPE- Gallery</a></li>
<li><a href="http://www.thepublicenemy.net/home/index.php">News Archive</a></li>
<li><a href="http://www.thepublicenemy.net/home/i...ticles</a></li>
<li><a href="http://www.thepublicenemy.net/calend...lendar</a></li>
</ul><!-- End Sub Level -->
</li>
</ul>
<!-- End Menu -->


Can I build a new template based off 'header' and replace the line in the awards template?
Then edit the new template IE header_awards and try to fix the issue that is conflicting with the awards template?

A couple of things, there's an unofficial patch to YAAS that you do not appear to be using. You can grab it from here.

Also you're menu is missing the </li> that corresponds to TPE - Center 2.

I'm not sure that will fix everything, but it will at least start you in the right direction.

afmarko99 07-18-2012 07:33 PM

Quote:

Originally Posted by squidsk (Post 2349334)
A couple of things, there's an unofficial patch to YAAS that you do not appear to be using. You can grab it from here.

Also you're menu is missing the </li> that corresponds to TPE - Center 2.

I'm not sure that will fix everything, but it will at least start you in the right direction.

Thanks but that didnt fix the problem.

squidsk 07-18-2012 08:03 PM

Quote:

Originally Posted by EaglezEye (Post 2349340)
Thanks but that didnt fix the problem.

Figured it out, its actually what I thought was a vbulletin bug that I mentioned a few pages ago but isn't. If you edit the template AWARDS and just before</head> add {vb:raw headinclude_bottom}. This should fix the issue.

afmarko99 07-18-2012 08:23 PM

Quote:

Originally Posted by squidsk (Post 2349355)
Figured it out, its actually what I thought was a vbulletin bug that I mentioned a few pages ago but isn't. If you edit the template AWARDS and just before</head> add {vb:raw headinclude_bottom}. This should fix the issue.

My friend you are a Genius!

Thank you very much. I would have never figured that out alone.

CAG CheechDogg 07-19-2012 04:51 AM

Quote:

Originally Posted by squidsk (Post 2349279)
Because most sites have html disabled in posts, as they should. This means that a post added to the post table can't have html tags or it won't display, so bbcode must be used.


Ah snaps! Makes sense..so If I enable html just in that forum it should be fine right?

Crotan 07-19-2012 07:17 PM

Quote:

Originally Posted by squidsk (Post 2349355)
Figured it out, its actually what I thought was a vbulletin bug that I mentioned a few pages ago but isn't. If you edit the template AWARDS and just before</head> add {vb:raw headinclude_bottom}. This should fix the issue.

Something similar needs to be done for the awards_recommend_form template and awards_request_form

EDIT: I should say everyone of his award templates that are their own page

Specifically in templates
awards_recommend_form
awards_request_form
awards_viewaward

where
HTML Code:

$headinclude

</head>

should be
HTML Code:

$headinclude
$headinclude_bottom
</head>


squidsk 07-29-2012 12:59 AM

Quote:

Originally Posted by CAG CheechDogg (Post 2349430)
Ah snaps! Makes sense..so If I enable html just in that forum it should be fine right?

No, because the post was created with the assumption that html would not work, so bbcode was used instead. The problem is that the [img]https://vborg.vbsupport.ru/[/img] bbcode does not handle relative links. A fix to the bbcode, no likely to be done, or a fix to the code to generate that post which prepends the site url to relative urls needs to be done. I can likely do the second, but wouldn't count on jelsoft doing the first. They may even have reasons for not doing it, which if I were to guess it would be because it is too difficult to determine what a valid relative url looks like.

Quote:

Originally Posted by Crotan (Post 2349628)
Something similar needs to be done for the awards_recommend_form template and awards_request_form

EDIT: I should say everyone of his award templates that are their own page

Specifically in templates
awards_recommend_form
awards_request_form
awards_viewaward

where
HTML Code:

$headinclude

</head>

should be
HTML Code:

$headinclude
$headinclude_bottom
</head>


Thanks, I'll see about putting together a new version with all the templates updated.

r00028304 08-02-2012 06:46 PM

Anyone know whats wrong here? - It worked fine and then stopped working?
Code:

Fatal error: Cannot redeclare construct_depth_mark() (previously declared in /home/xxx/public_html/xxx/awards.php:99) in /home/xxx/public_html/xxx/includes/adminfunctions.php on line 1922


All times are GMT. The time now is 03:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02744 seconds
  • Memory Usage 1,803KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete