PageRenderTime 179ms CodeModel.GetById 63ms app.highlight 2ms RepoModel.GetById 80ms app.codeStats 0ms

/b2evolution/firebug/README.txt

http://laibcomsthemes.googlecode.com/
Plain Text | 82 lines | 55 code | 27 blank | 0 comment | 0 complexity | 2808da69740f3bce45d5ccf559820297 MD5 | raw file
 1/* ---------------------------------------------------------------------------------------------- */
 2/* I. Search Field (Top-Right)                                                         */
 3/* ---------------------------------------------------------------------------------------------- */
 4
 5The Search Field in the top-right corner of the theme is hardcoded.  If you want to change it to your favorite search engine, for example Google Custom Search Engine, just follow these steps:
 6
 7Step 1.1: Open the file /firebug/_body_header.inc.php
 8Step 1.2: Look for:
 9
10<div id="topsearch">
11	<form action="<?php $Blog->gen_blogurl() ?>" method="get" id="searchform" class="search">
12		<input type="text" value="" name="s" id="s" class="swap_value" />
13		<input type="image" src="rsc/img/go.gif" id="go" alt="Search" title="Search" />
14	</form>
15</div> <!-- end of id="topsearch" -->
16
17Step 1.3: Change to:
18
19<div id="topsearch">
20	<form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
21		<input name="cx" type="hidden" value="YOUR-GOOGLE-CSE-PARTNER-NUMBER"/>
22		<input name="ie" type="hidden" value="UTF-8"/>
23		<input class="swap_value" id="s" name="q" type="text"/>
24		<input type="image" src="rsc/img/go.gif" id="go" name="sa" alt="Search" title="Search" />
25	</form>
26</div> <!-- end of id="topsearch" -->
27
28Step 1.4: Save and upload the file
29
30
31/* ---------------------------------------------------------------------------------------------- */
32/* II. RSS Link                                                                              */
33/* ---------------------------------------------------------------------------------------------- */
34
35The original theme have a hard-coded link to an RSS Feed.  Staying true to the original design, here's how to add it via b2evolution's Widget-Containers.
36
37Step 2.1: Create a 'Free HTML' widget under the 'Menu' container
38Step 2.2: In the 'block title' field put 'Feed'
39Step 2.3: In the 'name' field put 'Feed'
40Step 2.4: In the 'block content' field put the following:
41
42<li class="feedlink"><a href="#YOUR-FEED-URL-HERE">{FEED}</a></li>
43
44Step 2.5: Change '#YOUR-FEED-URL-HERE' to the URL of your Feed.
45Step 2.6: Click the 'Update' button
46
47
48/* ---------------------------------------------------------------------------------------------- */
49/* III. 125x125 Advertisements                                                       */
50/* ---------------------------------------------------------------------------------------------- */
51
52Step 3.1: Create a 'Free HTML' widget under the 'Sidebar-w-1' container
53Step 3.2: In the 'block title' field put 'Advertisements'
54Step 3.3: In the 'name' field put 'Advertisements'
55Step 3.4: In the 'block content' field put the following:
56
57<span class="ads"><a href="#YOUR-URL-HERE" class="ads"><img src="rsc/img/ad.gif" border="0" alt="Ad" /></a></span><span class="ads"><a href="#YOUR-URL-HERE" class="ads"><img src="rsc/img/ad.gif" border="0" alt="Ad" /></a></span><span class="ads"><a href="#YOUR-URL-HERE" class="ads"><img src="rsc/img/ad.gif" border="0" alt="Ad" /></a></span>
58
59Step 3.5: Change '#YOUR-URL-HERE' to the URL of your ad.
60Step 3.6: Change 'rsc/img/ad.gif' to where your AD Image is located.
61
62* If you want to add a 2nd row of 125x125 ADs, just repeat Steps 1.4 to 1.6.
63
64Step 3.7: Click the 'Update' button
65
66
67/* ---------------------------------------------------------------------------------------------- */
68/* IV. Socialbar (Container)                                                            */
69/* ---------------------------------------------------------------------------------------------- */
70
71The Socialbar of Firebug is hardcoded as it requires PHP calls.  If you do not want to use the default of the theme (which is part of the original design), follow these steps:
72
73Step 4.1: Open the file /firebug/_socialbar.inc.php
74Step 4.2: Delete the following:
75
76<strong><span>Submit Article :- </span></strong>
77<a href="http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>&amp;Url=<?php echo $Item->get_permanent_url(); ?>" title="BlinkList Submit" target="_blank"> BlinkList</a> + <a href="http://blogmarks.net/my/new.php?mini=1&amp;title=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>&amp;url=<?php echo $Item->get_permanent_url(); ?>" title="Blogmarks" target="_blank">Blogmarks</a> + <a href="http://www.digg.com/submit?phase=2&amp;url=<?php echo $Item->get_permanent_url(); ?>&amp;title=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>" title="Submit Post to Digg" target="_blank">Digg</a> + <a href="http://del.icio.us/post?url=<?php echo $Item->get_permanent_url(); ?>&amp;title=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>" title="Submit to Del.icio.us" target="_blank">Del.icio.us</a> + <a href="http://www.feedmarker.com/admin.php?do=bookmarklet_mark&amp;url=<?php echo $Item->get_permanent_url(); ?>&amp;title=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>;" title="Submit to Feedmarker" target="_blank">Feedmarker</a> + <a href="http://furl.net/storeIt.jsp?t=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>&amp;u=<?php echo $Item->get_permanent_url(); ?>" title="Submit to Furl" target="_blank">Furl</a> + <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=<?php echo $Item->get_permanent_url(); ?>&amp;title=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>" title="Submit to Google Bookmarks" target="_blank">Google Bookmarks</a> + <a href="http://www.netvouz.com/action/submitBookmark?url=<?php echo $Item->get_permanent_url(); ?>&amp;title=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>" title="submit to Netvous" target="_blank">Netvouz</a> + <a href="http://reddit.com/submit?url=<?php echo $Item->get_permanent_url(); ?>&amp;title=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>" title="Submit Reddit" target="_blank">Reddit</a> + <a href="http://www.simpy.com/simpy/LinkAdd.do?href=<?php echo $Item->get_permanent_url(); ?>&amp;title=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>" title="Submit to Simpy" target="_blank">Simpy</a> + <a href="http://www.spurl.net/spurl.php?title=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>&amp;url=<?php echo $Item->get_permanent_url(); ?>" title="submit to Spurl" target="_blank">Spurl</a> + <a href="http://technorati.com/faves?add=<?php echo $Item->get_permanent_url(); ?>" title="Submit to Technorati" target="_blank">Technorati</a> + <a href="http://www.wink.com/_/tag?url=<?php echo $Item->get_permanent_url(); ?>&amp;doctitle=<?php echo $Item->title( array( 'link_type' => 'none', ) ); ?>" title="Submit to Wink" target="_blank">Wink</a>
78
79Step 4.3: Save and upload the file
80
81You can now use the Socialbar container and put your own content, for example, your XML Feed (Atom 1.0 / RSS 2.0).
82