The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
At the very top of the navbar template.
|
#12
|
|||
|
|||
No problem.
And Boofo is right, javascript should go in the headinclude template. |
#13
|
|||
|
|||
Quote:
One other problem I am having with this script. Occasionally in certain browsers, I get a "Your Submission could not be processed due to an invalid security token" error when trying to Mark All Read. Doesn't happen in IE8, but happens on the browser on my Droid (Safari derivative I believe). Any thoughts? |
#14
|
|||
|
|||
This occurred with the new version? Or has been happening?
|
#15
|
|||
|
|||
Actually happened in 3.8.5 as well. Only seems to be certain browsers (mostly mobile browsers). Almost appears as though the browser isn't passing the security hash through the script (it is a java enabled browser).
|
#16
|
||||
|
||||
Is there anyway to check if the browser handles js and use the regular link for those occasions that it doesn't?
|
#17
|
|||
|
|||
Quote:
Code:
// Prevent CSRF. See #32785 $vbulletin->input->clean_array_gpc('r', array( 'markreadhash' => TYPE_STR, )); if (!verify_security_token($vbulletin->GPC['markreadhash'], $vbulletin->userinfo['securitytoken_raw'])) { eval(standard_error(fetch_error('security_token_invalid', $vbulletin->options['contactuslink']))); } |
#18
|
|||
|
|||
Can you check the URL upon redirect? Is there a hash in the query string?
|
#19
|
|||
|
|||
I really can't tell as there is no way to see the full link during the redirect on the mobile browser.
|
#20
|
|||
|
|||
I'm trying to use this method but when i add this function and hit the save button, it says
Fatal error: Maximum function nesting level of '100' reached, aborting! in /var/www/includes/vb_template.php on line 51 how can i resolve this problem? --------------- Added [DATE]1314536746[/DATE] at [TIME]1314536746[/TIME] --------------- Finally, i can include this function from external file... But now it's not working with vb4.1.5 I've add Code:
<script type="text/javascript" src="markread.js"></script> Code:
function markAsRead(session, markreadhash) { var markRead = confirm("Butun mesajlar okundu kabul edilecek. Emin misiniz?"); if (markRead == true) { window.location="forumdisplay.php?" + session + "do=markread&markreadhash=" + markreadhash; } else { } } Code:
<a href="javascript:markAsRead({vb:raw session.sessionurl},{vb:raw bbuserinfo.securitytoken});">{vb:rawphrase mark_forums_read}</a> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|