21
wizanda
Re: Sitemap Newbb XML failure after adding sub pages?
  • 2008/6/14 13:14

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Thxz, yet the sub links were added purposely for Google...

Thinking to make a simpler plug-in for newbb, as that’s a lot of code to do a simple task....
Something more like this:
<?php
function b_sitemap_newbb(){$xoopsDB =& Database::getInstance();
$block sitemap_get_categoires_map($xoopsDB->prefix("bb_forums"), "forum_id""cat_id""forum_name""viewforum.php?forum=""forum_order");
return 
$block;}
?>

As mydownloads, mylinks, etc, look something like that, not sure why we would want all that checking done in the first place.....
Still need to fix that, yet as long as all forums show and all sub links, I will be happy.



22
wizanda
Re: Sitemap Newbb XML failure after adding sub pages?
  • 2008/6/14 7:59

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Below the templates....with numbers now added....
/*subpages*/
$modversion['sub'][0]['name'] = _MI_SEARCH;
$modversion['sub'][0]['url'] = "search.php";
$modversion['sub'][1]['name'] = _MI_ALLPOSTS;
$modversion['sub'][1]['url'] = "viewpost.php";
$modversion['sub'][2]['name'] = _MI_VANP;
$modversion['sub'][2]['url'] = "viewpost.php?new=1";
$modversion['sub'][3]['name'] = _MI_ALL;
$modversion['sub'][3]['url'] = "viewall.php";
$modversion['sub'][4]['name'] = _MI_DIGEST;
$modversion['sub'][4]['url'] = "viewall.php?type=digest";
$modversion['sub'][5]['name'] = _MI_UNREPLIED;
$modversion['sub'][5]['url'] = "viewall.php?type=unreplied";
$modversion['sub'][6]['name'] = _MI_UNREAD;
$modversion['sub'][6]['url'] = "viewall.php?type=unread";
$modversion['sub'][7]['name'] = _MI_RSS;
$modversion['sub'][7]['url'] = "rss.php?c=0";



23
wizanda
Re: Sitemap Newbb XML failure after adding sub pages?
  • 2008/6/13 23:05

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


oops not solved it...deleted the plugin for now....poor Google, don't know how it copes with me



24
wizanda
Sitemap Newbb XML failure after adding sub pages?
  • 2008/6/13 21:58

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


For some reason after adding sub pages into the XOOPS version file of Newbb, sitemap has turned these into forums as well as sub pages on the google_xml.php….Could anyone see a reason for this happening from the sitemap newbb plugin?

<?php
/* $Id: newbb.php,v 1.1 2005/04/07 09:23:42 gij Exp $
// FILE        ::    newbb.php
// AUTHOR    ::    Ryuji AMANO <info@ryus.biz>
// WEB        ::    Ryu's Planning <http://ryus.biz/>
// NewBBversion/newbb2 plugin: D.J., https://xoops.org.cn*/
function b_sitemap_newbb(){global $sitemap_configs;
$sitemap = array();
// Get the NewBB version Info
$module_handler = &xoops_gethandler('module');
$newbb $module_handler->getByDirname('newbb');
$newbb_version intval($newbb->getInfo('version'));
// For NewBB 2. If the syntax is wrong, correct me plz.
if($newbb_version>=2){
// Get All Forums with access permission
$forum_handler =& xoops_getmodulehandler('forum''newbb');
$_forums $forum_handler->getForums(0'access');
// Some transformation; Might ugly but works :=)
$forums = array();
$forums_sub = array();
foreach (
$_forums as $forumid => $forum){if($forum->isSubForum()) $forums_sub[$forum->getVar('parent_forum')][$forumid] = array(
'id' => $forumid,
'url' => "viewforum.php?forum=".$forumid,
'title' => $forum->getVar('forum_name'));
else 
$forums[$forumid] = array(
'id' => $forumid,
'cid' => $forum->getVar('cat_id'),
'url' => "viewforum.php?forum=".$forumid,
'title' => $forum->getVar('forum_name'));}
unset(
$_forums);
foreach (
$forums as $id => $forum){if(!empty($forums_sub[$id]))
$forums[$id]['fchild'] =& $forums_sub[$id];}
// Why not enable subcategory?
if($sitemap_configs["show_subcategoris"])
{
$category_handler =& xoops_getmodulehandler('category''newbb');
$categories $category_handler->getAllCats('access');
if(
count($categories)>0) foreach ($categories as $key=>$category){$cat_id=$category->getVar("cat_id");
$i=$cat_id;
$sitemap['parent'][$i]['id'] = $cat_id;
$sitemap['parent'][$i]['title'] = $category->getVar("cat_title");
$sitemap['parent'][$i]['url'] = "index.php?cat=".$cat_id;}
if(
count($forums)>0) foreach ($forums as $id=>$forum){$cid=$forum['cid'];
$sitemap['parent'][$cid]['child'][$id] = $forum;
$sitemap['parent'][$cid]['child'][$id]['image'] = 2;
if(!empty(
$forum['fchild'])) foreach($forum['fchild'] as $_id=>$_forum){$sitemap['parent'][$cid]['child'][$_id] = $_forum;
unset(
$_forum);
$sitemap['parent'][$cid]['child'][$_id]['image'] = 3;}
unset(
$forum);}
/* In case not enable subcategory, do the following; Sorry, I have not tested with this mode yet. If any bugs, feel free to fix.*/
}else{if(count($forums)>0) foreach ($forums as $id=>$forum){$sitemap['parent'][$id] = $forum;
if(!empty(
$forum['fchild'])) foreach($forum['fchild'] as $_id=>$_forum){$sitemap['parent'][$id]['child'][$_id] = $_forum;
$sitemap['parent'][$cid]['child'][$id]['image'] = 2;
unset(
$_forum);}
unset(
$forum);}}
return 
$sitemap;}
/** My part ends, D.J. :=)*/
$db =& Database::getInstance();
$myts =& MyTextSanitizer::getInstance();
if(
$sitemap_configs["show_subcategoris"]){$sql 'SELECT DISTINCT c.* FROM '.$db->prefix('bb_categories').' c, '.$db->prefix("bb_forums").' f WHERE f.cat_id=c.cat_id GROUP BY c.cat_id, c.cat_title, c.cat_order ORDER BY c.cat_order';
$result $db->query($sql);
$categories = array();
while (
$cat_row $db->fetchArray($result)){$i $cat_row["cat_id"];
$sitemap['parent'][$i]['id'] = $cat_row["cat_id"];
$sitemap['parent'][$i]['title'] = $myts->makeTboxData4Show($cat_row["cat_title"]);
$sitemap['parent'][$i]['url'] = "index.php?cat=".$cat_row["cat_id"];
$categories[] = $cat_row["cat_id"];}}
$sql "SELECT f.* FROM ".$db->prefix("bb_forums")." f LEFT JOIN ".$db->prefix("bb_categories")." c ON f.cat_id=c.cat_id ORDER BY f.forum_id";
$result $db->query($sql);
$i=0;
while(
$forum_row $db->fetchArray($result))
{if(
$sitemap_configs["show_subcategoris"]){$j $forum_row["cat_id"];
$sitemap['parent'][$j]['child'][$i]['id'] = $forum_row["forum_id"];
$sitemap['parent'][$j]['child'][$i]['title'] = $myts->makeTboxData4Show($forum_row["forum_name"]);
$sitemap['parent'][$j]['child'][$i]['image'] = 2;
$sitemap['parent'][$j]['child'][$i]['url'] = "viewforum.php?forum=".$forum_row['forum_id'];}
else{
$sitemap['parent'][$i]['id'] = $forum_row["forum_id"];
$sitemap['parent'][$i]['title'] = $myts->makeTboxData4Show($forum_row["forum_name"]);
$sitemap['parent'][$i]['url'] = "viewforum.php?forum=".$forum_row['forum_id'];}
$i++;}
//print_r($categories);
return $sitemap;}
?>

<url>
<
loc>http://localhost/finalize/modules/newbb/</loc>
</url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/index.php?cat=1
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewforum.php?forum=1
</loc>
</
url>
?
    <
url>
<
loc>http://localhost/finalize/modules/newbb/</loc>
</url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewforum.php?forum=2
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewforum.php?forum=3
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewforum.php?forum=4
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewforum.php?forum=5
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewforum.php?forum=6
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewforum.php?forum=7
</loc>
</
url>
?
    <
url>
<
loc>http://localhost/finalize/modules/newbb/search.php</loc>
</url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewpost.php
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewpost.php?new=1
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewall.php
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewall.php?type=digest
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewall.php?type=unreplied
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/viewall.php?type=unread
</loc>
</
url>
?
    <
url>
?
    <
loc>
http://localhost/finalize/modules/newbb/rss.php?c=0
</loc>



25
wizanda
Re: Extra Bookmarks for Frameworks
  • 2008/6/8 16:56

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


<a title='Google' href="javascript:void(google=window.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'google'));google.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/google.png' /></a>
<
a title='Delicious' href="javascript:void(delicious=window.open('http://del.icio.us/post?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'delicious'));delicious.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/delicious.png' /></a>
<
a title='Furl' href="javascript:void(furl=window.open('http://www.furl.net/storeIt.jsp?t='+encodeURIComponent('%1$s')+'&u='+encodeURIComponent('%2$s'), 'furl'));furl.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/furl.png' /></a>
<
a title='Blink' href="javascript:void(furl=window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url='+encodeURIComponent('%2$s')+'&Title='+encodeURIComponent('%1$s'), 'Blink'));blink.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/blinklist.png' /></a>
<
a title='Digg' href="javascript:void(digg=window.open('http://digg.com/submit?phase=2&url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Digg'));digg.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/digg.png' /></a>
<
a title='Fark' href="javascript:void(fark=window.open('http://cgi.fark.com/cgi/fark/edit.pl?new_url='+encodeURIComponent('%2$s')+'&new_comment='+encodeURIComponent('%1$s')+'&new_link_other='+encodeURIComponent('%1$s')+'&linktype=Misc','Fark'));fark.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/fark.png' /></a>
<
a title='Newsvine' href="javascript:void(newsvine=window.open('http://www.newsvine.com/_tools/seed&save?u='+encodeURIComponent('%2$s')+'&h='+encodeURIComponent('%1$s'), 'Newsvine'));newsvine.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/newsvine.png' /></a>
<
a title='Reddit' href="javascript:void(reddit=window.open('http://reddit.com/submit?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Reddit'));reddit.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/reddit.png' /></a>
<
a title='Simpy' href="javascript:void(simpy=window.open('http://www.simpy.com/simpy/LinkAdd.do?href='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Simpy'));simpy.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/simpy.png' /></a>
<
a title='Spurl' href="javascript:void(spurl=window.open('http://www.spurl.net/spurl.php?title='+encodeURIComponent('%1$s')+'&url='+encodeURIComponent('%2$s'), 'Spurl'));spurl.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/spurl.png' /></a>
<
br />
<
a title='Yahoo' href="javascript:void(yahoo=window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent('%1$s')+'&u='+encodeURIComponent('%2$s'), 'Yahoo'));yahoo.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/yahoo.png' /></a>
<
a title='Backflip'  href="javascript:void(backflip=window.open('http://www.backflip.com/add_page_pop.ihtml?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Backflip'));backflip.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/backflip.png' /></a>
<
a title='Bibsonomy' href="javascript:void(bibsonomy=window.open('http://www.bibsonomy.org/ShowBookmarkEntry?c=b&jump=yes&url='+encodeURIComponent('%2$s')+'&description='+encodeURIComponent('%1$s'), 'Bibsonomy'));bibsonomy.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/bibsonomy.png' /></a>
<
a title='Blogmark' href="javascript:void(blogmarks=window.open('http://blogmarks.net/my/new.php?title='+encodeURIComponent('%1$s')+'&url='+encodeURIComponent('%2$s'), 'Blogmarks'));blogmarks.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/blogmarks.png' /></a>
<
a title='Citeulike' href="javascript:void(citeulike=window.open('http://www.citeulike.org/posturl?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Citeulike'));citeulike.focus();"><img border='0' src='".XOOPS_URL."/images/bookmarks/citeulike.png' /></a>
<
a title='Connotea' href="javascript:void(connotea=window.open('http://www.connotea.org/add?continue=return&uri='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Connotea'));connotea.focus();"><img border='0' src='".XOOPS_URL."/images/bookmarks/connotea.png' /></a>
<
a title='Diigo'  href="javascript:void(diigo=window.open('http://www.diigo.com/post?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Diigo'));diigo.focus();"><img border='0' src='".XOOPS_URL."/images/bookmarks/diigo.png' /></a>
<
a title='Dzone' href="javascript:void(dzone=window.open('http://www.dzone.com/links/add.html?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Dzone'));dzone.focus();"><img border='0' src='".XOOPS_URL."/images/bookmarks/dzone.png' /></a>
<
a title='Earthlink' href="javascript:void(earthlink=window.open('http://myfavorites.earthlink.net/my/add_favorite?v=1&url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Earthlink'));earthlink.focus();"><img border='0' src='".XOOPS_URL."/images/bookmarks/earthlink.png' /></a>
<
a title='Eatmyhamster' href="javascript:void(eatmyhamster=window.open('http://www.eatmyhamster.com/post?u='+encodeURIComponent('%2$s')+'&h='+encodeURIComponent('%1$s'), 'Eatmyhamster'));eatmyhamster.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/eatmyhamster.png' /></a>
<
br />
<
a title='Facebook' href="javascript:void(facebook=window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Facebook'));facebook.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/facebook.png' /></a>
<
a title='Fantacular' href="javascript:void(fantacular=window.open('http://fantacular.com/add.asp?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Fantacular'));fantacular.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/fantacular.png' /></a>
<
a title='Feedmarker' href="javascript:void(feedmarker=window.open('http://www.feedmarker.com/admin.php?do=bookmarklet_mark&url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Feedmarker'));feedmarker.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/feedmarker.png' /></a>
<
a title='Feedmelinks' href="javascript:void(feedmelinks=window.open('http://feedmelinks.com/categorize?from=toolbar&op=submit&name='+encodeURIComponent('%1$s')+'&url='+encodeURIComponent('%2$s'), 'Feedmelinks'));feedmelinks.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/feedmelinks.png' /></a>
<
a title='Gravee' href="javascript:void(gravee=window.open('http://www.gravee.com/account/bookmarkpop?u='+encodeURIComponent('%2$s')+'&t='+encodeURIComponent('%1$s'), 'Gravee'));gravee.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/gravee.png' /></a>
<
a title='Igooi' href="javascript:void(igooi=window.open('http://www.igooi.com/addnewitem.aspx?self=1&noui=yes&jump=close&url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Igooi'));igooi.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/igooi.png' /></a>
<
a title='Italknews' href="javascript:void(italknews=window.open('http://italknews.com/member/write_link.php?content='+encodeURIComponent('%2$s')+'&headline='+encodeURIComponent('%1$s'), 'Italknews'));italknews.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/italknews.png' /></a>
<
a title='Jookster' href="javascript:void(jookster=window.open('http://www.jookster.com/JookThis.aspx?url='+encodeURIComponent('%2$s'), 'Jookster'));jookster.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/jookster.png' /></a>
<
a title='Kinja' href="javascript:void(kinja=window.open('http://kinja.com/id.knj?url='+encodeURIComponent('%2$s'), 'Kinja'));kinja.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/kinja.png' /></a>
<
a title='Linkagogo' href="javascript:void(linkagogo=window.open('http://www.linkagogo.com/go/AddNoPopup?title='+encodeURIComponent('%1$s')+'&url='+encodeURIComponent('%2$s'), 'Linkagogo'));linkagogo.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/linkagogo.png' /></a>
<
br />
<
a title='Linkroll' href="javascript:void(linkroll=window.open('http://linkroll.com/insert.php?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Linkroll'));linkroll.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/linkroll.png' /></a>
<
a title='Linuxquestions' href="javascript:void(linuxquestions=window.open('http://bookmarks.linuxquestions.org/linux/post?uri='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s')+'&when_done=go_back', 'Linuxquestions'));linuxquestions.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/linuxquestions.png' /></a>
<
a title='Lookmarks' href="javascript:void(lookmarks=window.open('http://www.lookmarks.com/AddLinkFrame.aspx?Url='+encodeURIComponent('%2$s')+'&Title='+encodeURIComponent('%1$s'), 'Lookmarks'));lookmarks.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/lookmarks.png' /></a>
<
a title='lycos' href="javascript:void(lycos=window.open('http://iq.lycos.co.uk/lili/my/add?url='+encodeURIComponent('%2$s'), 'lycos'));lycos.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/lycos.png' /></a>
<
a title='MSN Live' href="javascript:void(live=window.open('https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&title='+encodeURIComponent('%1$s')+'&url='+encodeURIComponent('%2$s')+'&top=1', 'MSN Live'));live.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/windows_live.png' /></a>
<
a title='Magnolia' href="javascript:void(magnolia=window.open('http://ma.gnolia.com/bookmarklet/add?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Magnolia'));magnolia.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/magnolia.png' /></a>
<
a title='Markabboo' href="javascript:void(markabboo=window.open('http://www.markaboo.com/resources/new?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Markabboo'));markabboo.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/markabboo.png' /></a>
<
a title='Netscape' href="javascript:void(netscape=window.open('http://www.netscape.com/submit/?U='+encodeURIComponent('%2$s')+'&T='+encodeURIComponent('%1$s'), 'Netscape'));netscape.focus(); "><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/netscape.png' /></a>
<
a title='Netvouz' href="javascript:void(netvouz=window.open('http://www.netvouz.com/action/submitBookmark?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s')+'&popup=no', 'Netvouz'));netvouz.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/netvouz.png' /></a>
<
a title='Ning' href="javascript:void(ning=window.open('http://bookmarks.ning.com/addItem.php?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Ning'));ning.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/ning.png' /></a>
<
br />
<
a title='Nowpublic' href="javascript:void(nowpublic=window.open('http://view.nowpublic.com/?src='+encodeURIComponent('%2$s')+'&t='+encodeURIComponent('%1$s'), 'Nowpublic'));nowpublic.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/nowpublic.png' /></a>
<
a title='Rawsugar' href="javascript:void(rawsugar=window.open('http://www.rawsugar.com/pages/tagger.faces?turl='+encodeURIComponent('%2$s')+'&tttl='+encodeURIComponent('%1$s'), 'Rawsugar'));rawsugar.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/rawsugar.png' /></a>
<
a title='Riffs' href="javascript:void(riffs=window.open('http://www.riffs.com/item.cgi?section=init_url&url='+encodeURIComponent('%2$s')+'&name='+encodeURIComponent('%1$s'), 'Riffs'));riffs.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/riffs.png' /></a>
<
a title='Rojo' href="javascript:void(rojo=window.open('http://www.rojo.com/submit/?title='+encodeURIComponent('%1$s')+'&url='+encodeURIComponent('%2$s'), 'Rojo'));rojo.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/rojo.png' /></a>
<
a title='Squidoo' href="javascript:void(squidoo=window.open('http://www.squidoo.com/lensmaster/bookmark?'+encodeURIComponent('%2$s'), 'Squidoo'));squidoo.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/squidoo.png' /></a>
<
a title='Stumbleupon' href="javascript:void(stumbleupon=window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Stumbleupon'));stumbleupon.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/stumbleupon.png' /></a>
<
a title='Tagtooga' href="javascript:void(tagtooga=window.open('http://www.tagtooga.com/tapp/db.exe?c=jsEntryForm&b=fx&title='+encodeURIComponent('%1$s')+'&url='+encodeURIComponent('%2$s'), 'Tagtooga'));tagtooga.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/tagtooga.png' /></a>
<
a title='Technorati' href="javascript:void(technorati=window.open('http://www.technorati.com/faves?add='+encodeURIComponent('%2$s')+''+encodeURIComponent('%1$s'), 'Technorati'));technorati.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/technorati.png' /></a>
<
a title='Wink' href="javascript:void(wink=window.open('http://www.wink.com/_/tag?url='+encodeURIComponent('%2$s')+'&doctitle='+encodeURIComponent('%1$s'), 'Wink'));wink.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/wink.png' /></a>
<
br />
<
a title='Bookmarking Info' href="javascript:void(info=window.open('http://en.wikipedia.org/wiki/Social_bookmarking', 'Bookmarking Info'));info.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/what.png' /></a>


These still need testing fully; much thxz goes to McDonald for all the extra ones.....



26
wizanda
Extra Bookmarks for Frameworks
  • 2008/6/7 21:06

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


<a title='Google' href="javascript:void(google=window.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'google'));google.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/google.gif' /></a>
<
a title='Delicious' href="javascript:void(delicious=window.open('http://del.icio.us/post?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'delicious'));delicious.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/delicious.gif' /></a>
<
a title='Furl' href="javascript:void(furl=window.open('http://www.furl.net/storeIt.jsp?t='+encodeURIComponent('%1$s')+'&u='+encodeURIComponent('%2$s'), 'furl'));furl.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/furl.gif' /></a>
<
a title='Blink' href="javascript:void(furl=window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url='+encodeURIComponent('%2$s')+'&Title='+encodeURIComponent('%1$s'), 'Blink'));blink.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/blinklist.gif' /></a>
<
a title='Digg' href="javascript:void(digg=window.open('http://digg.com/submit?phase=2&url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Digg'));digg.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/diggman.gif' /></a>
<
a title='Fark' href="javascript:void(fark=window.open('http://cgi.fark.com/cgi/fark/edit.pl?new_url='+encodeURIComponent('%2$s')+'&new_comment='+encodeURIComponent('%1$s')+'&new_link_other='+encodeURIComponent('%1$s')+'&linktype=Misc','Fark'));fark.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/fark.gif' /></a>
<
a title='Newsvine' href="javascript:void(newsvine=window.open('http://www.newsvine.com/_tools/seed&save?u='+encodeURIComponent('%2$s')+'&h='+encodeURIComponent('%1$s'), 'Newsvine'));newsvine.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/newsvine.gif' /></a>
<
a title='Reddit' href="javascript:void(reddit=window.open('http://reddit.com/submit?url='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Reddit'));reddit.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/reddit.gif' /></a>
<
a title='Simpy' href="javascript:void(simpy=window.open('http://www.simpy.com/simpy/LinkAdd.do?href='+encodeURIComponent('%2$s')+'&title='+encodeURIComponent('%1$s'), 'Simpy'));simpy.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/simpy.png' /></a>
<
a title='Spurl' href="javascript:void(spurl=window.open('http://www.spurl.net/spurl.php?title='+encodeURIComponent('%1$s')+'&url='+encodeURIComponent('%2$s'), 'Spurl'));spurl.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/spurl.gif' /></a>
<
a title='Yahoo' href="javascript:void(yahoo=window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent('%1$s')+'&u='+encodeURIComponent('%2$s'), 'Yahoo'));yahoo.focus();"><img border='0' alt='' src='".XOOPS_URL."/images/bookmarks/yahoo.gif' /></a>


As I don’t use all of these, thought would be nice to add it on here encase anyone else uses them and would like to test; see if we got them all right
since there are so many, it would be nice if some people can help with a few more…

Oh and here is the images to be placed into XOOPS root images folder/ bookmarks



27
wizanda
Starbar Template {php} variable insertion help
  • 2008/1/2 12:29

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


With the Article rating system I realized you can turn it into a Starbar with ease and so adapted this to be system wide from the theme CSS……So Mydownloads and Mylinks have Starbar rating functionality working….
<{php}>
for(
$i=10;$i>0;$i--) echo'<span><input class="rateit" type="submit" style="width:30px; height:30px;" name="rating" id="rating'.$i.'" value="'.$i.'" /></span>';
<{/
php}>

What I forgot though is that on the Article’s page, it is only being used once and so no W3C errors from it….
Yet with the Mylinks and Mydownloads the ID is used multiple times for a single page….
So what is needed is to get the $lid to be used at the start of the rating ID and the sequential number of the ratings at the end, so each ID is unique…..
I’ve been looking through the Smarty manual for it and see you need to use global…
Yet so far haven’t been successful….
Does anyone know how to do this with Mylinks and Mydownloads to get the variable into the {php} code and so no W3C errors?



28
wizanda
Re: Beginners Unfriendly
  • 2008/1/1 12:01

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Sorry for not speaking earlier…..
The system has loads of changes, its XOOPS 2.2.5Z as Phppp told me, which was what we were working on, with Skalpa at the start of the year….
So I thought I would clean and optimize it, adding the latest Smarty and revising much of it…
The modules had been on my site for ages and so had been regularly fixed and changed, as new ideas were discussed and then me W3C fixing them…..
I was going to release them, yet with constant battles and no clear way to release them, I just made my own project in the end as it was beyond me how to submit to Xoops….
These are part of everyone’s work, just W3C cleaned, MySQL optimized and fixes where needed…..
I just feel left out of XOOPS and also a beginner who was trying to be helpful……
Really it’s not a selection of XOOPS modules for beginners, yet fixing all the errors and making my own working site, yet allowing everyone else to see the fixes….



29
wizanda
Re: database help - user uid
  • 2007/12/26 14:19

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


users



30
wizanda
Re: database help - user uid
  • 2007/12/26 12:32

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Change the Auto-increment value in MySql.....
Normally i just export the current table....change the auto-increment value at the top and then import it back into the database...
Yet if you are on the home server, when you install XOOPS on the live site it will do the same anyway....




TopTop
« 1 2 (3) 4 5 6 ... 131 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

59 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 59


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits