w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
How to redirect site.com/forum/index.php to site.com/forum/
In .htaccess there are basically two things you can do regarding url's. Rewriting url's You can rewrite url's internally. If the user visits yoursite.com/forum/ you can rewrite the url internally to use yoursite.com/forum/index.php. The user will see yoursite.com/forum in their address bar. In an .htaccess file, this would be written as: RewriteRule ^forum /forum/index.php [L] RewriteRule indicates that it should rewrite the url. ^forum matches the forum part in yoursite.com/forum/ and /forum/index.php says that it should rewrite the url to /forum/index.php. Last [L] means that if this RewriteRule matches, it should stop matching rules. Redirecting url's You can redirect an url too. This will send an header to the client to load a different page instead. If the user visits yoursite

Categories : PHP

is there software for jar file copy protection, or licensing software
Copy protection can't prevent your file to be copied but you can make it fail when it is run on unlicensed machines. Selection of a copy protection mechanism is a matter of budget and time. There are many companies with many products. You can go with not yet cracked technologies like iLok etc. This is applicable for very high revenue cases. But if your target audience is less than 1000 people then a simple in-house solution might work. Consequence of a complex method is typically many calls to support line and unhappy customers. Things got a lot easier after clients are all connected to internet. You can make some simple parts to run on server which a cracker would never dive into for a replacement. Or the app might download the contents from server after installation. Latter is what I d

Categories : Misc

Get software's information in WiX from software
The WiX.chm documents all the standard binder variables at the bottom of the topic titled Linker (light). It does not appear the those pieces of information are available. However, it might be something you could work with the WiX toolset community with to get the code added.

Categories : Wix

Disqus Forum - such thing, or even possible?
Seen a few people using disqus as a forum and I'm actually planning to do so myself. There's www.moot.it which can be used as a commenting system and also as a forum, but I don't quite like a few things about it. Regarding setting disqus up as a forum board, you need to make a small app that would allow your users to create pages / topics / posts, whatever you want to call them.

Categories : Misc

How do I find the forum id in disqus
The forum ID is the disqus_shortname used in the embed script. I found this in the documentation: http://disqus.com/api/docs/forums/details/ Looks up a forum by ID (aka short name)

Categories : Misc

PHP today / yesterday in forum
In php the syntax is: } elseif( /* conditions */ ) { Although if there are no conditions, simply do } else { UPDATE: See comments if( date('Ymd') == date('Ymd', strtotime($mytime)) ){ $day_name = 'This day'; } else { $day_name = 'Another day'; } echo $day_name;

Categories : PHP

Yet Another Forum: Installation Error
In retrospect, paying closer attention to the sql statements and experimenting a bit could've solved the problem. http://forum.yetanotherforum.net/yaf_postsm60154_ERROR--Invalid-object-name--sys-indexes.aspx#post60154

Categories : Dotnet

Forum posts not showing
in your create_topic.php on line 33 <input type="hidden" name="cid" value"<?php echo $cid; ?>" /> Your are missing the "=" <input type="hidden" name="cid" value="<?php echo $cid; ?>" />

Categories : PHP

Django Forum App Project Structure
Start by integrating your legacy database and then build the Admin site. You'll see how the model information is available to the Admin app and every other app you write. The key is to import models in your apps.

Categories : Python

Unlocked Forum Post saying it's locked?
I can not see you data so it's a guess use onyl ==0 not ===0 if (logged_in() === true) { if ($mythisql1['locked']==0) { ?> or if $mythisql1['locked'] is a string if (logged_in() === true) { if ($mythisql1['locked']=='0') { ?>

Categories : PHP

mail website forum under one database
Having multiple applications (forum, wiki, ...) access the same database is not likely to have any effect on CPU usage, but there are other drawbacks: Table names used by applications might have conflicts (many of them might have a "session" or "posts" table). Some web apps have a feature to prefix table names with a string, like "wp_session" and "wp_posts" for example to get around conflicts. Yes, it's less secure. When one of the applications has a security hole and someone manages to access its database, data of all applications is compromised. Multiple databases is likely to be easier to manage when doing application upgrades, backups, removing or adding applications to the mix. Accidentally break one database, and you'll break all apps. To get the applications use the same authent

Categories : Mysql

IBM Connections - get all followers of a Forum topic
AFAIK, that information is not available via the API. You can get a list of the resources followed by the authenticated user via the Following API, but that does not work for any other users (I assume due to privacy issues). You could fetch it the info you are looking for from the database via SQL statements, but that is not officially supported, as the databases could/will change with every product update. In the IBM Connections Forum at developerworks, there is an example for Communities.

Categories : Api

Select statement where Users.ID=Forum.ID
You have to perform this operation within your application, MongoDB does not allow joins. See the following two links for more information: http://docs.mongodb.org/manual/core/data-modeling/ http://docs.mongodb.org/manual/tutorial/model-embedded-one-to-many-relationships-between-documents/ What you'll want to do is query on the first document, get the id in your application, then query on your second document. If this is a common use case for you then you should consider embedding your subdocument into the main document if possible. Otherwise, MongoDB might not be the right tool for you; there's nothing wrong with using SQL if it's the right tool for the job.

Categories : Mysql

Determine which page a forum post is in
Assuming you are displaying the posts ordered by the id, you can do this: SELECT COUNT(*) FROM posts WHERE topic_id = 8976 AND id <= 15 This will give you the position of the post with the id 15 for example. Now you can check what page this position is on: $page = floor($position / 10); So in this example, post 15 is on page 2.

Categories : PHP

php code, (database, forum) error
$sql = "SELECT post_id, post_title FROM forum_post WHERE forum_id=1 AND post_type='o'"; should be $sql = "SELECT post_id, post_title FROM forum_post WHERE forum_id= ? AND post_type='o'"; Now, you will bind your parameter to this query.

Categories : PHP

Replacing Text In a Textbox in Continues Forum
Why not update the underlying data source via SQL? Option Compare Database Option Explicit Private Sub Form_Load() DoCmd.RunSQL "UPDATE myTable SET myField = myField + 'Test'" End Sub

Categories : Vba

HtmlUnit automating forum posting on vbulletin
some example 1.choose drop down // select option ALL HtmlSelect select = (HtmlSelect) currentPage.getElementByName("index"); HtmlOption option = select.getOptionByValue("All"); select.setSelectedAttribute(option, true); 2. // Enter text HtmlInput queryInput = currentPage.getElementByName("query"); queryInput.setValueAttribute(searchValue); 3. // click button HtmlSubmitInput submitBtn = currentPage.getFirstByXPath("//input[@value='Search']"); currentPage = submitBtn.click();

Categories : Java

How can I "limit" the page numbers of a forum/blog in PHP
I think you could do a check in there of If ($total_pages > 2) { $total_pages = 2}; $c = $this->db->selectAssoc( $this->db->Select('*', 'forum_categories ,forum_thems', "`forum_categories`. `lang` = '" . $l. "' AND `forum_thems`. `id_categories` = `forum_categories`.`id`")); $total_pages = count($c) / 25; if ($total_pages >2) { //limit to two pages $total_pages = 2; } $p = "<div class="pageCounter_box">Pages:"; if (empty($_GET['p'])) { $_GET['p'] = 1; }

Categories : PHP

Text to HTML converter for making forum
most popular code for forum is somehow like: BBCode Wiki Format Markdown or tookit like http://ckeditor.com/

Categories : Javascript

How do I use MySQL Join to sort forum threads by their last reply?
SELECT ... , MAX(m.date_posted) AS latest_reply ... GROUP BY t.thread_id ORDER BY latest_reply DESC ... But why is date_posted a TEXT? Shouldnt it be a datetime, or maybe a int (if a timestamp) Because will never be able to optimize running MAX on a text column, would suggest using MAX(m.message_id) AS latest_reply instead, which as messages are probably inserted in date order, should be equivient. Edited to add: The query written out in full... $query = " SELECT t.thread_id, title, MAX(m.message_id) AS latest_reply FROM forum_threads AS t LEFT JOIN forum_messages AS m ON t.thread_id = m.thread_id WHERE t.child_id = ".$board_id." GROUP BY t.thread_id ORDER BY latest_reply DESC LIMIT ".$starting.", ".$this->user['results_per_page'];

Categories : PHP

PHP/Mysql Create thread then redirect to forum category
echo "<META HTTP-EQUIV='Refresh' Content='0; URL=/category.php?id=" . $topic_cat . "'>"; That should work. You needed to put double quotation-marks outside the . $topic_cat . variable like so; " . $topic_cat . "

Categories : PHP

How do I count the number of replies in a board of my custom forum?
This should do it. $query = " SELECT COUNT(*) FROM forum_messages A, forum_threads B WHERE A.thread_id = B.thread_id AND A.message_id != B.first_msg_id AND B.board_id = " . mysqli_real_escape_string($dbc, $board_id) . " "; $rs = mysqli_query($dbc, $query); list($count) = mysqli_fetch_array($rs); echo $count;

Categories : PHP

Running a symfony2 app using nginx and phpbb3 forum alongside each other
add the /forum location in nginx location /forum { root [path to www]/forum; try_files $uri $uri/ [index location]; } I haven't used phbb3 before, so I don't know the exact index location for it.

Categories : Symfony2

How to serve static files in forum subfolder on nginx?
Replace if ($request_uri ~* "^/qa/") { rewrite ^/qa/(.*)$ /qa/index.php?qa-rewrite=$1 last; } with location ~ /qa/(.*)? { try_files $uri /qa/index.php?qa-rewrite=$1&$query_string; } also the block if (!-e $request_filename) { rewrite ^(.+)$ /index.php?$1 last; } is better to be moved inside the / location and converted into try_files location / { index index.php index.html; try_files $uri /index.php?$request_uri } if you still are having trouble please tell me.

Categories : PHP

Replace string on myBB forum (textare) when key is pressed - jQuery
It's a jQuery object, that's why .replace wont work. You need to add .val() to get the actual value, then you have to set it as well: var value = $("#message").val(); value = value.replace(str,"[b]"+str+"[/b]"); $("#message").val(value);

Categories : Jquery

Unable to create posts in rails forum on the topics page
In your :topics resource, you didn't defined the index method, that's why you won't be able to get to topic's list or index page. Try to change your route like this: resources :topics, only: [:index, :show] or remove only attribute from resources, it will automatically include all your methods by default. resources :topics Also if you have relationship between models, you should define nested routes in your routes file, For example, you can define them like this, you can change them accordingly: try to change your route file like this: resources :users resources :sessions, only: [:new, :create, :destroy] resources :forums do resources :topics do resources :microposts, only: [:new, :create, :destroy] end end In above case, you can access your forums like this: http:/

Categories : Ruby On Rails

Joomla Kunena Forum - Change Sections links into tabs
OK, I got it. Foreach was the answer. And what I did was: <?php foreach ( $this->sections as $section ) : $x++; ?> <?php if ($x == 1) { echo '<li class="active">'; } else {echo '<li>';} ?> <a id="sectab<?php echo intval($section->id) ?>" href="#sect<?php echo intval($section->id) ?>" data-toggle="tab"> <?php echo $this->escape($section->name); ?> </a> </li> <?php endforeach; ?> of course before foreach I added variable $x=0 which helped me a lot.

Categories : Twitter

Drop down data not posting "The forum you are trying to create a topic on, does not exist!"
You're looking for a form field named id, $id = mss($_GET['id']);, but the only select elements you create are cat or sub_cat. Either name one of those id or change what you're looking for.

Categories : PHP

Get Latest Topic for each category in Forum Home Page in CodeIgniter
You can try this, Hope it helps: function get_all_categories() { $data = array(); $get_categories = $this->db->get('categories'); $cat = $get_categories->result_array(); foreach( $cat as $key=>$each ){ $rs = $this->db->where('topic_cat_id', $each['cat_id'])->oreder_by('topic_id', 'desc')->get('Topics', 1)->row_array(); $data[$key]['cat'] = $each; $data[$key]['top'] = $rs; } echo "<pre>";print_r( $data ); return $data; }

Categories : PHP

Selecting a users forum activity while limiting results based on permission
Try this way SELECT count(*) FROM forum_threads thr JOIN forum_topics top ON thr.topic_id = top.topis_id JOIN forum_categories fc ON top.cat_id = fc.cat_id WHERE thr.user_id = $user_id AND fc.role_id IN ( 0, 24, 55, 888, .... list of user roles ... ) In the list of user roles (last condition) always put 0 as a first number, then the rest of his roles.

Categories : PHP

How do I use MySQL Joins to select forum boards that users are allowed to read?
This problem sounds complicated but it actually isn't. You can select all categories based on a given group ID by selecting from "permissions" and joining in "boards" based on the given board_id and then further joining in "categories" based on the category_id of the boards. This would return each category as often as it is indirectly listed in "permissions". To avoid that, you usually group by the category ID so that each distinct category is only included once in the result set. To exclude categories with no readable boards, you now select only those boards via the "permissions" table: SELECT c.* FROM permissions AS p JOIN boards AS b ON b.board_id = p.board_id JOIN categories AS c ON c.category_id = b.category_id WHERE p.group_id = 100 AND p.can_read = 1 GROUP BY c.category_id I've r

Categories : PHP

Tying to make a html forum make an account and send an activation email
In order to do this you will need to have some programming running on the server. If you don't want to learn to do that yourself, then there are a number of free systems available that will help you. Wordpress is a good example. You can add plugins to it to get it to work in the way that you need. You can find out more, and download it, at: http://www.wordpress.org/ There is a directory of plugins at: http://wordpress.org/plugins/

Categories : HTML

Chrome userscript works on a thread page, but not on a main forum page, with the same structure?
Adblock Plus is perfect for this kind of thing. Rather than trying a userscript or extension to block an external file, just install Adblock Plus and then add a filter for http://website.com/e3/2013/css/styles.css. If you insist on a userscript approach, then it appears that your existing code is fighting a race condition. That <link> node is part of a document that is stored in a div and is apparently manipulated by javascript (AJAX). Sometimes your script fires in time to catch a copy and sometimes it doesn't. This is exacerbated by the fact that Chrome scripts fire at unpredictable times, by default. It might be sufficient just to add "run_at": "document_end" to your manifest.json. (Which ironically, fires before the default script execution time.) However, to be sure, us

Categories : Javascript

How can I get all the software link?
Because you only download the first page of content. Just use a loop to donwload all pages: import urllib import urlparse from bs4 import BeautifulSoup for i in xrange(3): url = "http://www.downloadcrew.com/?act=search&page=%d&cat=51" % i pageHtml = urllib.urlopen(url) soup = BeautifulSoup(pageHtml) for a in soup.select("div.productListingTitle a[href]"): try: print (a["href"]).encode("utf-8","replace") except: print "no link" if you do'nt know the count of pages, you can import urllib import urlparse from bs4 import BeautifulSoup i = 0 while 1: url = "http://www.downloadcrew.com/?act=search&page=%d&cat=51" % i pageHtml = urllib.urlopen(url) soup = BeautifulSoup(pageHtml) has_more = 0 for a

Categories : Python

Best software installation kit for Mac OS X?
It might be rich, but it is not the OS X "style" - I have not seen any installer do that in ages. If you would like to do a tutorial or orientation, I would launch that after the installation business has been completed. BTW, full screen etc are also discouraged on Windows.

Categories : Osx

The relationship between SAS software and SID
Both are possible. If your deployment package includes those products, then you might have them installed, even if they are not available per your license (SID file). That depends on what was selected at installation, and when the original deployment package was created. You (or whomever manages installations) could look at the deployment package in SAS Deployment Manager to find out. To answer the question I think you're asking, you could certainly have one deployment package that includes the modules, and use the appropriate SID file to only activate the desired products on the desired machine(s) while still using the same deployment package. You could also install with a SID file that does not contain them and then run a new SID that does contain them later, so long as your deploym

Categories : Sas

C++ software architecture and design
The inner class in C++ is not like it is in Pascal. It's just paled in the "namespace" of the outer class, but no other thing is changed. It sees only its own members, and the instance is unrelated to the outer one. If you want the relation, you must pass an instance of the outer somehow, say in the constructor. Then you can access members through that pointer or reference.

Categories : C++

Is This a Software Design Pattern?
This is a good thing because you can filter the inputs and outputs in a standard way. You can do validation and additional processing. You can also validate inputs so that the inner/virtual method can rely on certain conditions to be true. I usually use the suffix "Core" (GetBarCore).

Categories : C#

Making a software setup for Mac OS
OS X applications are usually distributed as self contained app bundles that don't require an installer. It seems that Mono provides a package maker that help to create .app bundles from Mono projects: http://www.mono-project.com/MonoMacPackager

Categories : Osx

Installing a software using Makefile
You need to compile to an object file using the -c switch for gcc. This performs compilation but does not link your program, meaning that you can have a reference (such as the someFunctionDefinedInX) which is not yet resolved. Later, when you need to perform final compilation and link in that reference, use gcc myFirstUnlinkedObj.o mySecondUnlinkedObj.o. This will look at all of the object files, find all of the undefined references, and look them up in the other object (or source, if any) files. It then links them all together in your final executable. You can find a good explanation of what an object file is in this question. A makefile which could perform these steps for you could look like this (minus your install target): x-as-func.o: gcc -c x-as-func.c my-exe-file: x-as-fu

Categories : C



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.