Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Forum FAQ and Information Forum Talk 
Thread started 17 Nov 2007 (Saturday) 01:39
Search threadPrev/next
sponsored links (only for non-logged)

Subscription problem

 
Olli
-Mighty Mod-
Avatar
5,489 posts
Gallery: 21 photos
Best ofs: 3
Likes: 711
Joined Aug 2005
Location: Finland
     
Nov 17, 2007 01:39 |  #1

When I click "Subscribed Threads" under "Quick Links", why a page showing this message opens, and not the list of subscribed threads?

/*===============*\
|| ############### ||
|| # vBulletin 3.6.7 PL1
|| # --------------- # ||
|| # Copyright ©2000-2007 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # --------------- VBULLETIN IS NOT FREE SOFTWARE --------------- # ||
|| # http://www.vbulletin.c​om (external link) | http://www.vbulletin.c​om/license.html (external link) # ||
|| ############### ||
\*===============*/

// ###############
// vB_AJAX_NameSuggest
// ###############

/**
* Class to read input and suggest usernames from the typed fragment
*
* @param string Name of variable instantiating this class
* @param string ID of the text input element to monitor
* @param string Unique key of the popup menu in which to show suggestions
*/
function vB_AJAX_NameSuggest(va​rname, textobjid, menukey)
{
var webkit_version = userAgent.match(/apple​webkit\/([0-9]+)/);

if (AJAX_Compatible && !(is_saf && !(webkit_version[1] >= 412)))
{
this.menuobj = fetch_object(menukey + '_menu');
this.textobj = fetch_object(textobjid​);
this.textobj.onfocus = function(e) { this.obj.active = true; };
this.textobj.onblur = function(e) { this.obj.active = false; };
this.textobj.obj = this;

/**
* Varaiables used by this class
*
* @var string The name given to the instance of this class
* @var string The menu key for the vbmenu name suggestion popup
* @var string The current name fragment text
* @var string The current string of completed names (Foo ; Bar etc.)
* @var integer The currently selected name index in the menu
* @var boolean Is the suggestion menu open or not
* @var object A javascript timeout marker
* @var array The list of suggested names
* @var object The XML sender object
* @var boolean True when text box is focussed - only show menu when true
*/
this.varname = varname;
this.menukey = menukey;
this.fragment = '';
this.donenames = '';
this.selected = 0;
this.menuopen = false;
this.timeout = null;
this.names = new Array();
this.xml_sender = null;
this.active = false;

/**
* Options used by this class
*
* @var boolean Allow multiple names (Foo ; Bar etc.) or just single (Foo)
* @var integer The minimum length of the text fragment before requesting a search
*/
this.allow_multiple = false;
this.min_chars = 3;

// ===============
// vB_AJAX_NameSuggest methods

/**
* Reads the contents of the text input box
*/
this.get_text = function()
{
if (this.allow_multiple)
{
// search for a semi-colon (meaning we have more than one name in the box)
var semicolon = this.textobj.value.las​tIndexOf(';');

if (semicolon == -1)
{
// the current name is the only one in the text box
this.donenames = new String('');
this.fragment = new String(this.textobj.va​lue);
}
else
{
// also need to store completed names in the text box
this.donenames = new String(this.textobj.va​lue.substring(0, semicolon + 1));
this.fragment = new String(this.textobj.va​lue.substring(semicolo​n + 1));
}
}
else
{
this.fragment = new String(this.textobj.va​lue);
}

// trim away leading and trailing spaces from the fragment
this.fragment = PHP.trim(this.fragment​);
}

/**
* Sets the contents of the text input box
*
* @param integer The index of the desired name in this.names to insert
*/
this.set_text = function(i)
{
if (this.allow_multiple)
{
this.textobj.value = PHP.ltrim(this.donenam​es + " " + PHP.unhtmlspecialchars​(this.names[I]) + " ; ");
}
else
{
this.textobj.value = PHP.unhtmlspecialchars​(this.names[I]);
}

this.textobj.focus();

this.menu_hide();

return false;
}

/**
* Moves the 'selected' row in the menu
*
* @param integer Increment (1, -1 etc.)
*/
this.move_row_selectio​n = function(increment)
{
var newval = parseInt(this.selected​, 10) + parseInt(increment, 10);

if (newval < 0)
{
newval = this.names.length - 1;
}
else if (newval >= this.names.length)
{
newval = 0;
}

this.set_row_selection​(newval);

return false;
}

/**
* Sets the 'selected' row in the menu
*
* @param integer The index of the desired selection (0 - n)
*/
this.set_row_selection = function(i)
{
var tds = fetch_tags(this.menuob​j, 'td');
tds[this.selected].cla​ssName = 'vbmenu_option';
this.selected = i;
tds[this.selected].cla​ssName = 'vbmenu_hilite';
}

/**
* Event handler for the text input box key-up event
*
* @param event The event object
*/
this.key_event_handler = function(evt)
{
evt = evt ? evt : window.event;

if (this.menuopen)
{
// 38 = up
// 40 = down
// 13 = return
// 27 = escape

switch (evt.keyCode)
{
case 38: // arrow up
{
this.move_row_selectio​n(-1);
return false;
}
case 40: // arrow down
{
this.move_row_selectio​n(1);
return false;
}
case 27: // escape
{
this.menu_hide();
return false;
}
case 13: // return / enter
{
this.set_text(this.sel​ected);
return false;
}
}
}

// create the fragment
this.get_text();

if (this.fragment.length >= this.min_chars)
{
clearTimeout(this.time​out);
this.timeout = setTimeout(this.varnam​e + '.name_search();', 500);
}
else
{
this.menu_hide();
}
}

/**
* Sends the fragment to search the database
*/
this.name_search = function()
{
if (this.active)
{
this.names = new Array();

if (!this.xml_sender)
{
this.xml_sender = new vB_AJAX_Handler(true);
}
this.xml_sender.onread​ystatechange(this.onre​adystatechange);
this.xml_sender.send('​ajax.php?do=usersearch​', 'do=usersearch&fragmen​t=' + PHP.urlencode(this.fra​gment));
}
}

var me = this;

/**
* OnReadyStateChange callback. Uses a closure to keep state.
* Remember to use 'me' instead of 'this' inside this function!
*/
this.onreadystatechang​e = function()
{
if (me.xml_sender.handler​.readyState == 4 && me.xml_sender.handler.​status == 200 && me.xml_sender.handler.​responseXML)
{
var users = fetch_tags(me.xml_send​er.handler.responseXML​, 'user');
for (i = 0; i < users.length; i++)
{
me.names[I] = me.xml_sender.fetch_da​ta(users[I]);
}

if (me.names.length > 0)
{
me.menu_build();
me.menu_show();
}
else
{
me.menu_hide();
}

me.xml_sender.handler.​abort();
}
}

/**
* Builds the menu html from the list of found names
*/
this.menu_build = function()
{
this.menu_empty();
var re = new RegExp('^(' + PHP.preg_quote(this.fr​agment) + ')', "i");

var table = document.createElement​('table');
table.cellPadding = 4;
table.cellSpacing = 1;
table.border = 0;
for (i in this.names)
{
var td = table.insertRow(-1).insertCell(-1);
td.className = (i == this.selected ? 'vbmenu_hilite' : 'vbmenu_option');
td.title = 'nohilite';
td.innerHTML = '<a onclick="return ' + this.varname + '.set_text(' + i + ')">' + this.names[I].replace(​re, '<strong>$1</strong>') + '</a>';
}
this.menuobj.appendChi​ld(table);

if (this.vbmenu == null)
{
if (typeof(vBmenu.menus[t​his.menukey]) != 'undefined')
{
this.vbmenu = vBmenu.menus[this.menu​key];
}
else
{
this.vbmenu = vBmenu.register(this.m​enukey, true);
}
}
else
{
this.vbmenu.init_menu_​contents();
}
}

/**
* Empties the menu of all names
*/
this.menu_empty = function()
{
this.selected = 0;

while (this.menuobj.firstChi​ld)
{
this.menuobj.removeChi​ld(this.menuobj.firstC​hild);
}
}

/**
* Shows the menu
*/
this.menu_show = function()
{
if (this.active)
{
this.vbmenu.show(fetch​_object(this.menukey), this.menuopen);
this.menuopen = true;
}
}

/**
* Hides the menu
*/
this.menu_hide = function()
{
try
{
this.vbmenu.hide();
}
catch(e) {}
this.menuopen = false;
}

this.textobj.onkeyup = function(e) { return this.obj.key_event_han​dler(e); };
this.textobj.onkeypres​s = function(e)
{
e = e ? e : window.event;
if (e.keyCode == 13)
{
return (this.obj.menuopen ? false : true);
}
};
}
}

/*===============*\
|| ###############
|| # Downloaded: 06:34, Sun Jul 8th 2007
|| # CVS: $RCSfile$ - $Revision: 15546 $
|| ###############
\*===============*/


My Instagrams (external link)
"The best travel is a leap in the dark. If the destination were familiar and friendly what would be the point in going there?" (Paul Theroux: Dark Star Safari)
Image Posting Rules

  
  LOG IN TO REPLY
Skip ­ Souza
Cream of the Crop
Avatar
26,204 posts
Likes: 7
Joined Mar 2005
Location: The Left Coast in the Land of Fruits and Nuts
     
Nov 17, 2007 02:05 |  #2

Wow :shock:
Haven't seen that before. Have you tried clearing your cache/temp files?


Bless the recently fallen and their family and friends.
I have a Cannon with me at all times. You can't take the shot if you don't have something with which to shoot. :rolleyes:
That which does not kill me ~~ Should Run.
5DMkII, 7D, 70-300L IS, 24-105L,
No more PayPal gift payment requests.
"PERSONAL MESSAGING REGARDING SELLING OR BUYING ITEMS WITH MEMBERS WHO HAVE NO POSTS IN FORUMS AND/OR WHO YOU DO NOT KNOW FROM FORUMS IS HEREBY DECLARED STRICTLY STUPID AND YOU WILL GET BURNED."

  
  LOG IN TO REPLY
condyk
Africa's #1 Tour Guide
Avatar
20,887 posts
Likes: 22
Joined Mar 2005
Location: Birmingham, UK
     
Nov 17, 2007 02:12 |  #3

Looks like you caught Pekka with his pants down :confused:;)


https://photography-on-the.net …/showthread.php​?t=1203740

  
  LOG IN TO REPLY
Olli
THREAD ­ STARTER
-Mighty Mod-
Avatar
5,489 posts
Gallery: 21 photos
Best ofs: 3
Likes: 711
Joined Aug 2005
Location: Finland
     
Nov 17, 2007 02:37 |  #4

Skip Souza wrote in post #4331303 (external link)
Wow :shock:
Haven't seen that before. Have you tried clearing your cache/temp files?

Thanks Skip. Cache cleared and now works ... simple when you know it.


My Instagrams (external link)
"The best travel is a leap in the dark. If the destination were familiar and friendly what would be the point in going there?" (Paul Theroux: Dark Star Safari)
Image Posting Rules

  
  LOG IN TO REPLY
Skip ­ Souza
Cream of the Crop
Avatar
26,204 posts
Likes: 7
Joined Mar 2005
Location: The Left Coast in the Land of Fruits and Nuts
     
Nov 17, 2007 02:58 |  #5

It was just luck. In fact it is my first answer when something really weird jumps up. It can't hurt and has about a 50% success rate ;-)a


Bless the recently fallen and their family and friends.
I have a Cannon with me at all times. You can't take the shot if you don't have something with which to shoot. :rolleyes:
That which does not kill me ~~ Should Run.
5DMkII, 7D, 70-300L IS, 24-105L,
No more PayPal gift payment requests.
"PERSONAL MESSAGING REGARDING SELLING OR BUYING ITEMS WITH MEMBERS WHO HAVE NO POSTS IN FORUMS AND/OR WHO YOU DO NOT KNOW FROM FORUMS IS HEREBY DECLARED STRICTLY STUPID AND YOU WILL GET BURNED."

  
  LOG IN TO REPLY
::John::
Cream of the Crop
8,659 posts
Gallery: 60 photos
Likes: 401
Joined Dec 2005
Location: Canberra, Australia
     
Nov 17, 2007 04:13 |  #6

condyk wrote in post #4331313 (external link)
Looks like you caught Pekka with his pants down :confused:;)

Thanks - I needed a laugh!


I am the proud owner of the Peleng 8mm Fisheye lens

  
  LOG IN TO REPLY
sponsored links (only for non-logged)

1,608 views & 0 likes for this thread, 4 members have posted to it.
Subscription problem
FORUMS Forum FAQ and Information Forum Talk 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is semonsters
1060 guests, 102 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.