Jump to content

Search the Community

Showing results for tags 'custom'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 5 results

  1. Hello, I have a wordpress site using Thesis 2.1 theme and I am displaying "excerpts" for each post on homepage.. I don't want to add <!-- more --> to each post and I want to show sth different, sth more valuable on the homepage to my readers.. Thats why I use excerpts. I added this line of code to my custom.php file: function new_excerpt_more($more) {global $post;return ' <a href="'. get_permalink($post->ID) . '">Continue Reading...</a>';}add_filter('excerpt_more', 'new_excerpt_more'); It added a "continue reading.." link to the posts that I haven't yet defined excerpt.. So, If nothing is written on the excerpt area of that post, it shows some part of the post and adds a "continue reading.." link to it on the homepage. But if I have written sth in the excerpt area of the post, it does shows the excerpt, but doesn't add the "continue reading.." link at the end.. I will be happy if you may help me on this, this drives me nuts currently! [/size] MERGED So basically, what I am trying to do is, adding read more tag to custom excerpts which we define manually. Here is another code I tried but had no luck again! //* Changing excerpt more - only works where excerpt IS hand-craftedfunction manual_excerpt_more( $excerpt ) { $excerpt_more = ''; if( has_excerpt() ) { $excerpt_more = ' <a href="' . get_permalink() . '" rel="nofollow">[Read more]</a>'; } return $excerpt . $excerpt_more;}add_filter( 'get_the_excerpt', 'manual_excerpt_more' );
  2. hello, on click this link, i am redirecting to page-listing-category.php page. and all listing are shown there. http://domain-name/listing-category/?a=hello but i want this link as http://domain-name/listing-category/hello ... i use this code in function.php add_rewrite_tag("%a%",'([0-9]+)'); $a = get_query_var("a"); // Wordpress way add_rewrite_rule('listing-category/([0-9]+)/?$', 'index.php?page_id=page-listing-category&a=$matches[1]', 'top'); add_rewrite_tag("%a%",'([0-9]+)'); add_rewrite_rule('listing-category/([0-9]+)/?$', 'index.php?page_id=page-listing-category&a=$matches[1]', 'top'); $wp_rewrite->flush_rules(); but, problem is the above isn't working ... can anypne suggest me something on this. ?? thanks.
  3. Hello I have been working on developing a custom forum software for personal use. I have everything done accept for the youtube integratio the align and link features in the post. As of right now Im more concerned with the youtube integration. I am currently using js to add the button and tags to the post and php to implement what the tags do. Currently the button is fine it posts the youtube tags which are [vid][/vid] I am just having trouble figuring out how to assing a variable so that a user can input the video id. I am trying to replace {PARAM} with the video id. here is what I have on the php file. ; $r = str_replace("[vid]","<object width='425' height='344'><param name='movie' value='http://www.youtube.com/v/{PARAM}'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/{PARAM}' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object>",$r); $r = str_replace("[/vid]","",$r); $r = str_replace("{PARAM}", "KcuJAe3TrQw",$r); I have put a video id of KcuJAe3TrQw in quotes to see if the youtube will get put in if I just use the tags and it indeed does. What I want to do is replace the id with a variable that I can let the user asign the id to... How would I do this or something relevant that would work. Also if you have any spare time I would love to know what I am doing wrong with the align $r = str_replace(" [center]","align=center",$r); $r = str_replace("[/center] ","'>",$r); Thanx for looking at my post and I hope you can help me
  4. I have a site for the Club I made, however I want to make it so that I can read the Session info, and then a certain Row for a user's page. I made their own personal webpages that get their information from the Session from MySQL. I want to try and see if all the information after a certain part will collect information from a different row. If that can't, is there a way it can be certain marks? I don't know how to explain it, but it is supposed to be that it keeps their username and other information that is requested on the site is active, but collects certain information from a row on the database. If you don't understand, go here: http://www.mcqtools.cu.cc/Club/member/ and login with test:test (username:password) then go to the 'Block' tab... I want their information to stay on the TOP of the page, like the user's name and all that, but the other information on the bottom of the block is from a certain row (userid=1) I don't know if I explained that right or not :/
  5. I have a function with a button, that fetches a javascript pop-up with an input where people can post a hyperlink to another website. That works, but now, I want to give the hyperlink a different name, other than the linkname itself. This is what I want to happen: http://i.stack.imgur.com/lcMgH.png So you can see that 1 2 and 3 are links. On my site, you can see the links too, but the full http:// path of the link is shown and not a custom name. How can I make this happen?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.